home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
autostrt.doc
< prev
next >
Wrap
Text File
|
1995-02-28
|
2KB
|
35 lines
(Developers.only)
Item: 29 by akcs.davemarsh@hpcvbbs.cv.hp.com [DAVID J. MARSH]
Subj: Autostart libraries
Date: Fri Jun 28 1991
These are libraries containing the code to acomplish an autostart
function. The first, AUTOBOOT.LIB, is a library that causes a warm
start at every power on event (even if the 48 timed out and turned
itself off). The way that this is done is very much the same as the
way the DEMO card from HP does it. The second library, AUTOSTRT.LIB,
has CONFIG code that simply sets an immediately executing control
alarm that evaluates the object 'AUTOEXEC' in the home menu. This is
done so that any program may be run. (When in the half-initialized
state in which config code runs, many usercode programs will fail...).
AUTOEXEC may contain any program or call any program within the
machine. A side effect of this approach is that all config routines of
all libraries are run at every machine turn on.
Dave Marsh
----
Note from Joe Horn:
I took Dave's AUTOSTRT.LIB and expanded it slightly to search through
the ports, too, for the AUTOEXEC program. So you can put it in a ROM
and make take-over cards, just like the DEMO ROM. (It's called
AUTOPORT.LIB on this disk.) I've already used this technique in a
commercial ROM, and it works like a charm; the user just turns the HP
48 on, and everything else is automatic! -jkh-
RECAP: AUTOBOOT.LIB -- warmstarts at every turn-on.
AUTOSTRT.LIB -- runs AUTOEXEC in main memory at warmstart.
AUTOPORT.LIB -- runs &:AUTOEXEC at warmstart.